package com.waylau.spring.boot.blog.domain;

import javax.persistence.*;
import java.io.Serializable;
import java.sql.Date;

/**
 * 找回密码流水实体.  关键是
 * 
 * @since 1.0.0 2018年3月5日
 * @author Bing
 */
@Entity // 实体
public class Forget implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id // 主键
	private String id;

	//用户名
	@Column(nullable = false)
	private String code;

	/**
	 *时间
	 */
	@Column(nullable = false)
	private Date time;

	/**
	 * 状态
	 * 0 有效
	 * 1 失效
	 */
	@Column(nullable = false)
	private Integer status = 0;

	public String getId() {
		return id;
	}

	public String getCode() {
		return code;
	}

	public Date getTime() {
		return time;
	}

	public Integer getStatus() {
		return status;
	}

	public void setId(String id) {
		this.id = id;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
}
